<?php
class PresentationOptions extends Presentation {
    protected $options;
    
    public function __construct($options) {
        $this->options = explode('-', $options);
    }
    
    public function formatForList($value) {
        return $this->lang($this->options[$value]);
    }
    
    public function formatFormField(&$field) {
        $field['type'] = 'select';
        $field['options'] = array();
        foreach ($this->options as $id => $option) {
            $field['options'][$id] = $this->lang($option);
        }
        $field['selected'] = $field['value'];
    }
}